FROM harbor-test.lvshou.com/builder/openjdk:8-jdk-alpine
MAINTAINER killer
#安装ping和curl命令，方面容器内排错
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk update && apk add --no-cache iputils curl tini
workdir /apps
COPY ./target/*.jar /apps/
# ENTRYPOINT java $JAVA_OPTS -jar *.jar --server.port=8080
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["sh","-c"," java $JAVA_OPTS -jar *.jar --server.port=8080"]